package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 发券人表
 * </p>
 *
 * @author Mr.We
 * @since 2024-06-25
 */
@Getter
@Setter
@TableName("afshop_user_coupon")
@ApiModel(value = "AfshopUserCoupon对象", description = "发券人表")
public class AfshopUserCoupon implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("优惠券Id")
    private Integer couponId;

    @ApiModelProperty("优惠券数量")
    private String couponNumber;

    @ApiModelProperty("会员Id")
    private Long userId;

    @ApiModelProperty("使用时间")
    private LocalDateTime usedTime;

    @ApiModelProperty("领取时间")
    private LocalDateTime addTime;

    @ApiModelProperty("订单Id")
    private Integer orderId;

    @ApiModelProperty("来源key")
    private String sourceKey;

    @ApiModelProperty("发券人")
    private Integer referrer;
}
